package beanutils.entity;

import beanutils.BeanUtils;

public class Test {
    public static void main(String[] args) {
        Sub src = new Sub();
        src.setParentId("1111");
        src.setAge(1000);
        Sub dest = new Sub();
        //dest.setParentId("22222");
        dest.setAge(2000);
        BeanUtils.copySrcNotNullField(src,dest);
        System.out.println(dest.toString());
    }
}
